package cn.melonlib.cores.commons.comp.utils;

import org.springframework.context.ApplicationContext;

/**
 * 此工具类需要在spring-boot 启动时注入然后使用
 */
public class ApplicationContextUtils {

    public static ApplicationContext applicationContext;

    public static ApplicationContext getApplicationContext() {
        return applicationContext;
    }

    public static void setApplicationContext(ApplicationContext applicationContext) {
        ApplicationContextUtils.applicationContext = applicationContext;
    }
}
